home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group02b.txt / 000154_icon-group-sender_Mon Dec 9 08:30:32 2002.msg < prev    next >
Internet Message Format  |  2003-01-02  |  2KB

  1. Return-Path: <icon-group-sender>
  2. Received: (from root@localhost)
  3.     by baskerville.CS.Arizona.EDU (8.11.1/8.11.1) id gB9FT8E23905
  4.     for icon-group-addresses; Mon, 9 Dec 2002 08:29:08 -0700 (MST)
  5. Message-Id: <200212091529.gB9FT8E23905@baskerville.CS.Arizona.EDU>
  6. From: "Ladv∩┐╜nszky K∩┐╜roly" <aa@bb.cc>
  7. X-Newsgroups: comp.lang.icon
  8. Subject: Re: Icon compiler
  9. Date: Mon, 9 Dec 2002 09:30:40 +0100
  10. X-Priority: 3
  11. X-MSMail-Priority: Normal
  12. X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
  13. X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
  14. To: icon-group@cs.arizona.edu
  15. Errors-To: icon-group-errors@cs.arizona.edu
  16. Status: RO
  17.  
  18. Thanks for your answer.
  19.  
  20. > The Icon-to-C (iconc) compiler can produce very fast programs. I recall
  21. once
  22. > using it on the Icon versions of uuencode / uudecode ("iiencode.icn" and
  23. > "iidecode.icn" in the IPL) and ran some timing checks. The iconc versions
  24. of
  25. > iiencode / iidecode were over 3 times as fast as the interpreted (icont /
  26. > iconx) versions. More surprisingly, I found that the iconc programs were
  27. > actually faster than native C uuencode / uudecode programs that I was
  28. using
  29. > at the time!
  30.  
  31. Well ... I have this Fibonacci test for benchmarks. With MS C ++ it takes 8
  32. secs to calculate the result for 40 as input and for Icon it takes about 600
  33. secs. Now with even 3 times speed improvement, it'd still be 200 secs for
  34. Icon. Given that, I think it's very exaggerated to say Icon programs can be
  35. faster than C. However slow compared to C, I do recognise Icon's power and
  36. I'm considering adding it to my software toolchest.
  37.  
  38.  
  39.  
  40.  
  41.